package com.iawz.snailoauth.user.controller;

import com.iawz.snailoauth.user.service.UserService;
import lombok.AllArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@AllArgsConstructor
@RestController
public class UserController {
    private UserService userService;

    @GetMapping("/user/all")
    public ResponseEntity getAllUsers(){
        return ResponseEntity.ok(userService.findAll());
    }
}
